package com.zjljr.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "stock-server")
public interface StockServiceFeign {

    @RequestMapping("/stock/reduce")
    public String reduce();

    @RequestMapping("/stock/reduceStock")
    public String reduceStock(@RequestParam Integer productId);

}
